<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : PaginaSenha
    Created on : 25/05/2010, 14:21:27
    Author     : Jaime Junior
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <script>
               /* Função para mascarar o campo */
               function mascara(o,f){
                  v_obj=o;
                  v_fun=f;
                  setTimeout("execmascara()",1);
               }
               /* Função para executar a mascara */
               function execmascara(){
                  v_obj.value=v_fun(v_obj.value);
               }

               /* Função para receber apenas números */
               function soNumeros(v){
                  v= v.replace(/\D/gi,'');
                  return v;
               }
               function cpf(v){
                  v=v.replace(/\D/g,"")
                  v=v.replace(/(\d{3})(\d)/,"$1.$2")
                  v=v.replace(/(\d{3})(\d)/,"$1.$2")
                  v=v.replace(/(\d{3})(\d{1,2})$/,"$1-$2")
                  return v;
               }
               function hidden(){
                  document.body.style.overflow='hidden';
               }
                </script>
                <title> Recuperação de Senha</title>
            </ice:outputHead>
            <body onload="hidden()">
                <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                    <ice:form id="form1">
                        <ice:panelPopup autoCentre="true" binding="#{PaginaSenha.painelBuscarFrase}" draggable="false" id="painelBuscarFrase" modal="true"
                            rendered="#{PaginaSenha.panelPopup1Bean.showDraggablePanel}"
                            style="height: 210px; left: 456px; top: 408px; position: absolute; width: 405px" visible="#{PaginaSenha.panelPopup1Bean.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelSairCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgSairTitulo" value="  Sair"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelSairCorpo" layout="flow" style="display: block; font-family: Verdana,Arial,Helvetica,sans-serif; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText binding="#{PaginaSenha.labelFrase}" id="labelFrase" style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; left: 106px; top: 7px; position: absolute; text-align: left; width: 189px"/>
                                    <ice:commandButton action="#{PaginaSenha.botaoOk_action}" id="botaoOk" image="/resources/botaoOk.png" immediate="true"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 178px; top: 128px; position: absolute" value="Ok"/>
                                    <ice:inputText binding="#{PaginaSenha.campoFraseSecreta}" id="campoFraseSecreta" partialSubmit="true" readonly="true" style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 86px; top: 47px; position: absolute; width: 230px"/>
                                    <ice:outputText binding="#{PaginaSenha.labelInformacao}" id="labelInformacao"
                                        style="color: #ff0000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 41px; left: 24px; top: 72px; position: absolute; text-align: left; width: 357px" value="Em caso de maiores problemas contate os desenvolvedores."/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <ice:panelGroup id="painelGeral" style="height: 768px; margin-left: -512px; left: 50%; top: 0px; position: absolute; width: 1024px">
                            <ice:graphicImage id="imagemFundo" value="/resources/telaSenhas.jpg" style="height: 768px; margin-left: -512px; left: 50%; top: 0px; position: absolute; width: 1024px"/>
                            <ice:panelLayout id="painelConteudo" layout="flow" style="font-family: 'Courier New',Courier,monospace; font-size: 14px; height: 620px; left: 2%; top: 12%; position: absolute; width: 980px; -rave-layout: grid">
                                <!-- Painel Opções -->
                                <ice:panelLayout id="painelOpcoes" layout="flow" style="height: 46px; left: 0px; top: 0px; position: absolute; width: 980px; -rave-layout: grid">
                                    <ice:commandButton action="#{PaginaSenha.botaoSair_action}" alt="Sair" id="botaoSair" image="/resources/botaoSair.png"
                                        immediate="true" partialSubmit="true" style="height: 45px; left: 912px; top: 0px; position: absolute; width: 64px"
                                        title="Sair" value="Sair"/>
                                </ice:panelLayout>
                                <ice:outputText id="outputText1"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 120px; top: 120px; position: absolute; text-align: right; width: 142px&quot;" value="Digite o seu CPF:"/>
                                <ice:inputText binding="#{PaginaSenha.campoCPF}" id="campoCPF" maxlength="14" onkeypress="mascara(this,cpf);"
                                    partialSubmit="true" required="true" style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 265px; top: 123px; position: absolute; width: 230px"/>
                                <ice:commandButton action="#{PaginaSenha.botaoBuscar_action}" id="botaoBuscar"
                                    style="left: 456px; top: 168px; position: absolute" value="Buscar"/>
                                <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoCPF" id="message1" infoClass="infoMessage"
                                    showDetail="true" showSummary="true"
                                    style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 504px; top: 120px; position: absolute; width: 406px" warnClass="warnMessage"/>
                            </ice:panelLayout>
                        </ice:panelGroup>
                    </ice:form>
                </ice:outputBody>
            </body>
        </ice:outputHtml>
    </f:view>
</jsp:root>
